module.exports = {
    entry: {
        bundle: './main.jsx',
    },
    output: {
        filename: '[name].js'
    },
    module:{
        rules:[
            {
                test: /\.js[x]?$/,
                exclude: /node_modules/,
                loader: 'babel-loader',
                query:{
                    presets: ['es2015', 'react']
                }
            }
        ]
    }
};